﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<LinearGradientBrush x:Key="MyBackTitleBrush" EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
		<LinearGradientBrush.RelativeTransform>
			<TransformGroup>
				<ScaleTransform CenterY="0.5" CenterX="0.5"/>
				<SkewTransform CenterY="0.5" CenterX="0.5"/>
				<RotateTransform Angle="-43" CenterY="0.5" CenterX="0.5"/>
				<TranslateTransform/>
			</TransformGroup>
		</LinearGradientBrush.RelativeTransform>
		<GradientStop Color="#FF385B89" Offset="0.535"/>
		<GradientStop Color="#FF242CA2" Offset="1"/>
		<GradientStop Color="#FF4396E8"/>
	</LinearGradientBrush>
    
	<LinearGradientBrush x:Key="MyTextGradientBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="White"/>
		<GradientStop Color="Blue" Offset="1"/>
		<GradientStop Color="#FF7ADEE6" Offset="0.539"/>
		<GradientStop Color="White" Offset="0.047"/>
		<GradientStop Color="#FF070EFD" Offset="0.771"/>
	</LinearGradientBrush>
    
	<LinearGradientBrush x:Key="MyTextGradientLightResource" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="White"/>
		<GradientStop Color="#FFE1E7FF" Offset="1"/>
		<GradientStop Color="#FF77ABFF" Offset="0.539"/>
	</LinearGradientBrush>
    
    <Style x:Key="MyMenuItem" TargetType="{x:Type MenuItem}">
        <Setter Property="MenuItem.Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type MenuItem}">
                    <Border HorizontalAlignment="Stretch" x:Name="Root">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="70"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Border x:Name="InnerBord"
                                    HorizontalAlignment="Stretch">
                                <Rectangle Opacity="0" RadiusX="5"
                                           RadiusY="5" Fill="LightCyan">
                                </Rectangle>
                            </Border>
                            <Border x:Name="NameWrapper"
                                    HorizontalAlignment="Stretch"
                                    Padding="1,0,2,0">
                                <TextBlock Text="{TemplateBinding MenuItem.Header}"
                                           x:Name="Name"
                                           Foreground="Black"
                                           VerticalAlignment="Center"
                                           HorizontalAlignment="Stretch"
                                           Margin="2,0,0,0">
                                </TextBlock>
                            </Border>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="InnerBord" Property="Opacity" Value="90"/>
                            <Setter TargetName="InnerBord" Property="Background" Value="LightCyan"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="InnerBord" Property="Background" Value="SkyBlue"/>
                            <Setter TargetName="Root" Property="Background" Value="WhiteSmoke"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="False">
                            <Setter TargetName="InnerBord" Property="Opacity" Value="0"/>
                            <Setter TargetName="Root" Property="Background" Value="Gainsboro"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
	<!-- Resource dictionary entries should be defined here. -->
</ResourceDictionary>